package cn.stylefeng.guns.modular.business.frequency.orderroyalty.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 提成记录表
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderRoyaltyParam extends BaseParam {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空",groups = {edit.class})
    private Long id;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * create_user
     */
    private Long createUser;

    /**
     * update_time
     */
    private Date updateTime;

    /**
     * update_user
     */
    private Long updateUser;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空",groups = {add.class,edit.class})
    private Long orderId;

    /**
     * 毛利金额
     */
    @NotNull(message = "毛利金额不能为空",groups = {add.class,edit.class})
    private BigDecimal grossFee;

    /**
     * 提成金额
     */
    @NotNull(message = "提成金额不能为空",groups = {add.class,edit.class})
    private BigDecimal royaltyFee;

    /**
     * user_id
     */
    @NotNull(message = "user_id不能为空",groups = {add.class,edit.class})
    private Long userId;

    /**
     * 状态 1.未生效 2.有效 3.失效
     */
    @NotNull(message = "状态 1.未生效 2.有效 3.失效不能为空",groups = {add.class,edit.class})
    private Integer status;

    /**
     * 生效时间
     */
    @NotNull(message = "生效时间不能为空",groups = {add.class,edit.class})
    private Date effectTime;

}
